<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>组件二</title>

    <style>
        * {
            list-style: none;
            margin: 0px;
            padding: 0px;
        }

        [v-cloak] {
            display: none
        }
    </style>
    <link rel="stylesheet" href="components/swiper/sb-swiper.css">
    <link rel="stylesheet" href="components/pager/sb-pager.css">
</head>

<body>
    <div id="app" v-cloak>
        <sb-swiper :imglist="imglist" :interval="1000"></sb-swiper>
        <h1> {{pageIndex}}</h1>
        <sb-pager :pagecount="10" v-model="pageIndex"></sb-pager>
       
    </div>
    <script src="https://cdn.bootcss.com/vue/2.6.4/vue.js"></script>
    <script src="components/swiper/sb-swiper.js"></script>
    <script src="components/pager/sb-pager.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: {
                pageIndex: 1,
                imglist: [{
                    img: "img/1.jpg",
                    href: "https://suning.com",
                    title: "苏宁苏宁苏宁苏宁"
                }, {
                    img: "img/2.jpg",
                    href: "https://jd.com",
                    title: "苏宁苏宁苏宁苏宁"
                }, {
                    img: "img/3.jpg",
                    href: "https://360.com",
                    title: "苏宁苏宁苏宁苏宁"
                }, {
                    img: "img/4.jpg",
                    href: "https://tmall.com",
                    title: "苏宁苏宁苏宁苏宁"
                }]
            },

        })
    </script>
</body>

</html>